import Vue from "vue";
import VueRouter from "vue-router";
import MyGoodsList from '@/views/MyGoodsList'
import MyGoodsSearch from '@/views/MyGoodsSearch'
import MyUserInfo from '@/views/MyUserInfo'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/mygoodslist'
  },
  {
    path: '/mygoodslist',
    component: MyGoodsList,
    name: 'MyGoodsList'
  },
  {
    path: '/myGoodsSearch',
    component: MyGoodsSearch,
    name: 'MyGoodsSearch'
  },
  {
    path: '/myUserInfo',
    component: MyUserInfo,
    name: 'MyUserInfo'
  }
]

const router = new VueRouter({
  routes
})

export default router